public class test {
    public static void main(String[] args) {
        MyTwoWayLinkedList myTwoWayLinkedList = new MyTwoWayLinkedList();
        myTwoWayLinkedList.addLast(1);
        myTwoWayLinkedList.addLast(2);
        myTwoWayLinkedList.addLast(3);
        myTwoWayLinkedList.addLast(4);
        myTwoWayLinkedList.addLast(5);
        myTwoWayLinkedList.addLast(3);
        myTwoWayLinkedList.addLast(3);
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.addFirst(99);
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.addIndex(1,88);
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.removeLast();
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.removeFirst();
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.removeIndex(1);
        System.out.println(myTwoWayLinkedList);

        myTwoWayLinkedList.removeKey(3);
        System.out.println(myTwoWayLinkedList);

        System.out.println(myTwoWayLinkedList.contains(88));
        System.out.println(myTwoWayLinkedList.isEmpty());
        myTwoWayLinkedList.clear();
        System.out.println(myTwoWayLinkedList.isEmpty());
    }
}
